package com.tedu.demo3;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/**
 *
 */
@Component
public class UserDAO {
    //数据库连接地址
    @Value("jdbc:mysql://localhost:3306/tedu")
    private String url;
    //用户名
    @Value("root")
    private String userName;
    //密码
    @Value("root")
    private String password;

    @Override
    public String toString() {
        return "UserDAO{" +
                "url='" + url + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
